package com.example.supplychainbackend.dao.quality;

import com.example.supplychainbackend.entity.quality.InspectionBatchEntity;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface InspectionBatchDao extends JpaRepository<InspectionBatchEntity, Long> {
    Optional<InspectionBatchEntity> findByInspectionBatchNumber(String ibno);

    void deleteByInspectionBatchNumber(String ibno);

    Optional<InspectionBatchEntity> findByBatchNumber(String batchNumber);

}
